package org.xxpay.core.service;

import org.xxpay.core.entity.ResendRecord;

import java.util.Date;
import java.util.List;

/**
 * @author: pangxiaoyu
 * @date: 2020/02/11
 * @description:
 */
public interface IResendRecordService {

    int add(ResendRecord resendRecord);

    int update(ResendRecord resendRecord);

    ResendRecord findById(Long id);

    List<ResendRecord> select(int offset, int limit, ResendRecord resendRecord, Date createTimeStart, Date createTimeEnd);

    Integer count(ResendRecord resendRecord, Date createTimeStart, Date createTimeEnd);

    /**
     * 补单记录
     * @param payOrderId 支付订单号
     * @param operateUserId 操作人ID
     * @param remark 备注
     */
    ResendRecord insertRecord(String payOrderId, Long operateUserId, String remark, byte operateUserBelongSystem);

    /**
     * 补单记录
     * @param resendRecord
     */
    int updateState2Finish(ResendRecord resendRecord);
}
